package acn.spring.domain;

import javax.persistence.Embeddable;
import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;

@Embeddable
public class Review {

	private String comment;

	@NotNull
	@Min(0)
	@Max(5)
	private Integer star;

	public Review() {
	}

	public Review(Integer star) {
		setStar(star);
	}

	public Integer getStar() {
		return star;
	}

	public void setStar(Integer star) {
		this.star = star;
	}

	public String getComment() {
		return comment;
	}

	public void setComment(String comment) {
		this.comment = comment;
	}

}
